home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / gui / x / twm93053.lha / twm / iconmgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-29  |  3.0 KB  |  90 lines

  1. /*
  2.  * Copyright 1989 Massachusetts Institute of Technology
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and its
  5.  * documentation for any purpose and without fee is hereby granted, provided
  6.  * that the above copyright notice appear in all copies and that both that
  7.  * copyright notice and this permission notice appear in supporting
  8.  * documentation, and that the name of M.I.T. not be used in advertising
  9.  * or publicity pertaining to distribution of the software without specific,
  10.  * written prior permission.  M.I.T. makes no representations about the
  11.  * suitability of this software for any purpose.  It is provided "as is"
  12.  * without express or implied warranty.
  13.  *
  14.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  15.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  16.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  17.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  18.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  19.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  20.  */
  21.  
  22. /***********************************************************************
  23.  *
  24.  * $XConsortium: iconmgr.h,v 1.11 89/12/10 17:47:02 jim Exp $
  25.  *
  26.  * Icon Manager includes
  27.  *
  28.  * 09-Mar-89 Tom LaStrange        File Created
  29.  *
  30.  ***********************************************************************/
  31.  
  32. #ifndef _ICONMGR_
  33. #define _ICONMGR_
  34.  
  35. typedef struct WList
  36. {
  37.     struct WList *next;
  38.     struct WList *prev;
  39.     struct TwmWindow *twm;
  40.     struct IconMgr *iconmgr;
  41.     Window w;
  42.     Window icon;
  43.     int x, y, width, height;
  44.     int row, col;
  45.     int me;
  46.     Pixel fore, back, highlight;
  47.     unsigned top, bottom;
  48.     short active;
  49.     short down;
  50. } WList;
  51.  
  52. typedef struct IconMgr
  53. {
  54.     struct IconMgr *next;        /* pointer to the next icon manager */
  55.     struct IconMgr *prev;        /* pointer to the previous icon mgr */
  56.     struct IconMgr *lasti;        /* pointer to the last icon mgr */
  57.     struct WList *first;        /* first window in the list */
  58.     struct WList *last;            /* last window in the list */
  59.     struct WList *active;        /* the active entry */
  60.     TwmWindow *twm_win;            /* back pointer to the new parent */
  61.     struct ScreenInfo *scr;        /* the screen this thing is on */
  62.     Window w;                /* this icon manager window */
  63.     char *geometry;            /* geometry string */
  64.     char *name;
  65.     char *icon_name;
  66.     int x, y, width, height;
  67.     int columns, cur_rows, cur_columns;
  68.     int count;
  69. } IconMgr;
  70.  
  71. extern int iconmgr_textx;
  72. extern WList *DownIconManager;
  73.  
  74. extern void CreateIconManagers();
  75. extern IconMgr *AllocateIconManager();
  76. extern void MoveIconManager();
  77. extern void JumpIconManager();
  78. extern WList *AddIconManager();
  79. extern void InsertInIconManager();
  80. extern void RemoveFromIconManager();
  81. extern void RemoveIconManager();
  82. extern void ActiveIconManager();
  83. extern void NotActiveIconManager();
  84. extern void DrawIconManagerBorder();
  85. extern void SortIconManager();
  86. extern void PackIconManager();
  87.  
  88.  
  89. #endif /* _ICONMGR_ */
  90.